<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title><!--{$lang.page.login.title}--></title>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<link rel="shortcut icon" href="/static/favicon.ico" type="image/x-icon" />
	<link rel="stylesheet" href="/static/admin/css/main.css">	
</head>

<body>
<div class="dowebok container-contact100">
	<div class="toplog"><a href="/"><img src="/static/admin/images/login.png"></a></div>
	<div class="toplang">
		<select class="my-select" id="language">
			<!--{foreach item=item key=key from=$langs}-->
            <option value='<!--{$key}-->' <!--{if $key eq $default}-->selected<!--{/if}-->><!--{$item.name}--></option>
            <!--{/foreach}-->
        </select>

	</div>
	<div class="wrap-contact100">
		<form class="contact100-form validate-form" method="post">
			<input id="codes" class="codes" type="hidden" name="codes">
			<span class="contact100-form-title"></span>

			<div class="wrap-input100 validate-input" data-validate="<!--{$lang.page.login.uservalidate}-->">
				<label class="label-input100" for="username"><!--{$lang.page.login.username}--></label>
				<input id="username" class="input100 inputcheck" type="text" name="username" placeholder="<!--{$lang.page.login.titleplace}-->">
				<span class="focus-input"></span>
			</div>

			<div class="wrap-input100 validate-input" data-validate="<!--{$lang.page.login.pwdvalidate}-->">
				<label class="label-input100 " for="passwd"><!--{$lang.page.login.password}--></label>
				<input id="passwd" class="input100 inputcheck" type="password" name="passwd" placeholder="<!--{$lang.page.login.passwdplace}-->">
				<span class="focus-input"></span>
			</div>
			<div class="wrap-input50 validate-input codevalue" data-validate="<!--{$lang.page.login.codevalidate}-->">
				<label class="label-input50" for="passwd"><!--{$lang.page.login.code}--></label>
				<input id="code" class="input50 inputcheck" type="text" name="code" placeholder="<!--{$lang.page.login.codeplace}-->" >
				<span class="focus-input"></span>
			</div>

			<div style="float:left; margin:-85px 0 0 210px; cursor:pointer; "><img id="verImg" style="-webkit-user-select: none;margin: auto; border-radius: 5px;" src="/admin/login/doimg" onclick="changeVer()"></div>
			<div class="container-contact100-form-btn">
				<button type="button" class="contact100-form-btn"><!--{$lang.page.login.submit}--></button>
			</div>
		</form>

		<div class="contact100-more flex-col-c-m" style="background-image: url('/static/admin/images/bg-01.jpg');">
		</div>
	</div>
	<div class="bottom"><br />Copyright © 2024 <br />support：Rising sun</div>
</div>
<script src="/static/admin/js/jquery-1.12.4.min.js"></script>
<script type="text/javascript">
	$('#language').change(function(){
        $.post('/admin/login/setlanguage/',{'lang':$('#language').val()}, function(data) {
                if(data.code==200){
                    location.reload();
                }else{
                    alert(data.msg)
                }
        })
    });
    //刷新验证码
    function changeVer(){
        document.getElementById("verImg").src="/admin/login/doimg?tmp="+Math.random();
    }
    
    document.getElementById("code").onfocus = function() {getcode()};

    function getcode(){
    $.get("/admin/login/getCaptcha", function(data) {
        $('.codes').val(data);
     });	
    }
    
</script>
<script src="/static/admin/js/main.js"></script>
</body>
</html>
